package com.example.jyjava.dao;

import com.example.jyjava.bean.Tab;
import com.example.jyjava.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TabDao {
    public List<Tab> getAllTab();

    public List<Tab> getTab(@Param("title")String title, @Param("pageStart")int PageStart, @Param("pageSize")int pageSize);

    public int getTabCounts(@Param("title")String title);

    public int addTab(Tab tab);

    public int updateState(Integer id,Boolean tabState);

    public Tab getUpdateTab(int id);

    public int editTab(Tab tab);

    public int deleteTab(int id);
}
